package com.my.wechat.repository;

import org.springframework.data.jpa.repository.Query;

import com.my.wechat.domain.entity.WeChatEntity;
import com.sskj.core.repository.GenericRepository;

public interface WeChatRepository extends GenericRepository<WeChatEntity, String> {

	@Query(value = "select * from wx_Entity t order by t.created_time desc LIMIT 1", nativeQuery = true)
	WeChatEntity findOne();
}
